/*
 *  Copyright (C) 2011 Hatsites
 * 
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU General Public License
 *  as published by the Free Software Foundation; either version 2
 *  of the License, or (at your option) any later version.
 * 
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

package org.myorg.ctm.etk.gui.io.finder;

import org.myorg.shr.gui.swg.io.finder.FinderResBinImgAbs;
import org.myorg.shr.gui.swg.io.finder.FinderResBinImgShr;

/**
 *
 * @author Hatsites
 *
 * email: Hatsites_AT_gmail.com
 * ... please remove "_AT_" from the above string to get the right email address
 */

final public class FinderResEtk extends FinderResBinImgAbs{

        final static public String[] STR_APPLI = {"old", FinderResBinImgShr.STR_EXTENSION_GIF, "application"};

        final static private FinderResEtk _INSTANCE = new FinderResEtk();

        static public javax.swing.ImageIcon s_getIcon(String[] strsFileName, Integer size){
        ClassLoader cld = _INSTANCE.getClass().getClassLoader();
        String strPathSys =
                FinderResBinImgAbs._STR_PATH_PREFIX_SYS_ +
                java.io.File.separator +
                "ctm" +
                java.io.File.separator +
                "etk"
                ;
        String strPathJar =
                FinderResBinImgAbs._STR_PATH_PREFIX_JAR +
                "/" +
                "ctm" +
                "/" +
                "etk"
                ;

        String strFileSuffix =  "_" + size.toString() + "." + strsFileName[strsFileName.length-2];

        return FinderResBinImgAbs._s_getIcon_(
                cld,
                strsFileName,
                strFileSuffix,
                strPathSys,
                strPathJar);
    }

    
}
